//
//  profileInfoModel.m
//  giuseppe
//
//  Created by Apple on 15/8/17.
//  Copyright (c) 2015年 GiantUmbrella. All rights reserved.
//

#import "profileInfoModel.h"

@implementation profileInfoModel

static profileInfoModel *_order;

+(profileInfoModel *)order
{
    @synchronized ([profileInfoModel class])
    {
        if (_order == nil)
        {
            _order = [[profileInfoModel alloc] init];
        }
    }
    return _order;
}



+ (instancetype) initWithDicAttributes:(NSDictionary *)dic {
    
    
    profileInfoModel *tmp = [[profileInfoModel alloc] init];
    
    
    if (dic) {
        
        
        tmp.resultCode = [dic objectForKey:@"resultCode"];
        tmp.imgurl = [dic objectForKey:@"imgurl"];
        tmp.gender = [dic objectForKey:@"gender"];
        tmp.weight = [dic objectForKey:@"weight"];
        tmp.birthday = [dic objectForKey:@"birthday"];
        tmp.school = [dic objectForKey:@"school"];
        tmp.class = [dic objectForKey:@"class"];
        tmp.userIdentityNumber = [dic objectForKey:@"userIdentityNumber"];
        tmp.name = [dic objectForKey:@"name"];
        
    }
    
    
    return tmp;
    
}



@end
